import request from '@/utils/request'

// 查询订单列表
export function listService(query) {
  return request({
    url: '/order/after-sale/list',
    method: 'post',
    data: query
  })
}

export function auditService(data) {
  return request({
    url: '/order/after-sale/audit',
    method: 'post',
    data: data
  })
}

export function rejectService(data) {
  return request({
    url: '/order/after-sale/audit/reject',
    method: 'post',
    data: data
  })
}

export function getService(serviceNo) {
  return request({
    url: '/order/after-sale/' + serviceNo,
    method: 'get'
  })
}
